//
//  BTEBankCormormAlertViewController.swift
//  BTE
//
//  Created by Mike Zhang on 2025/8/18.
//

import UIKit

class BTEBankCormormAlertViewController: BTEAlertViewController {
    
    let imagev = UIImageView.init(image: UIImage.init(named: "Group 11712772dddddddd73"))
  
    private let tit = UILabel()
    
    private let mv = UIView.init(backgroundColor: .colorWithHex("#FFF6BC")!)
    
    let t2 = UILabel()
    
    let im = UIImageView.init(image: UIImage.init(named: "Rectangle 3462ffff5240"))
    
    let textf = UITextField()

    override func viewDidLoad() {
        super.viewDidLoad()
        
        mainv.addSubview(imagev)
        imagev.snp.makeConstraints { make in
            make.edges.equalToSuperview()
            make.height.equalTo((UIScreen.main.bounds.width - 17 - 17) * imagev.frame.height / imagev.frame.width)
        }
        
        tit.textColor = .colorWithHex("#082252")
        tit.font = .systemFont(ofSize: 18, weight: .bold)
        tit.textAlignment = .center
        tit.text = BTELanguageManager.shared.localizedString(forKey: "Confirm card number")
        mainv.addSubview(tit)
        tit.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalToSuperview().offset(44)
        }
        
        mainv.addSubview(mv)
        mv.roundCorners(.allCorners, radius: 22)
        mv.snp.makeConstraints { make in
            make.left.right.equalToSuperview().inset(23)
            make.top.equalTo(tit.snp.bottom).offset(27)
        }
        
        mv.addSubview(t2)
        t2.numberOfLines = 0
        t2.textColor = .black
        t2.text = BTELanguageManager.shared.localizedString(forKey: "Please confirm whether the information is correct?")
        t2.font = .systemFont(ofSize: 14,weight: .bold)
        t2.textAlignment = .center
        t2.snp.makeConstraints { make in
            make.left.right.equalToSuperview().inset(16)
            make.top.equalToSuperview().offset(14)
        }
        
        mv.addSubview(im)
        im.snp.makeConstraints { make in
            make.top.equalTo(t2.snp.bottom).offset(12)
            make.left.right.equalToSuperview().inset(7)
            make.bottom.equalToSuperview().offset(-16)
            make.height.equalTo(48)
        }
        
        textf.isUserInteractionEnabled = false
        im.addSubview(textf)
        textf.isUserInteractionEnabled = false
        textf.textAlignment = .center
        textf.font = .systemFont(ofSize: 16,weight: .bold)
        textf.textColor = .colorWithHex("#187CA5")!
        textf.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
    }
    


}
